package io2_homework;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("osw.obj");
        OutputStreamWriter osw = new OutputStreamWriter(fos,StandardCharsets.UTF_8);
        osw.write("喜欢打蓝球");
        osw.write("练习时长一年");
        System.out.println("输出完成!");
        osw.close();
    }
}
